:root {
  font-family: 'Inter', 'SF Pro Display', system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  font-weight: 400;

  /* 主题色调 - 淡紫色和天蓝色 */
  --primary-purple: #a259ec;
  --primary-blue: #5b6ee1;
  --light-purple: #e9ddfe;
  --light-blue: #a9c5f7;
  --gradient-bg: linear-gradient(135deg, #a9c5f7 0%, #e9ddfe 100%);
  --gradient-accent: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-purple: linear-gradient(135deg, #a259ec 0%, #7c3aed 100%);
  --gradient-blue: linear-gradient(135deg, #5b6ee1 0%, #4f46e5 100%);
  
  /* 文字颜色 */
  --text-primary: #2d3748;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --text-light: #a0aec0;
  
  /* 背景色 */
  --bg-primary: #ffffff;
  --bg-secondary: #f7fafc;
  --bg-tertiary: #edf2f7;
  
  /* 边框和阴影 */
  --border-light: #e2e8f0;
  --border-medium: #cbd5e0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-purple: 0 4px 24px rgba(162, 89, 236, 0.15), 0 1px 6px rgba(162, 89, 236, 0.1);
  --shadow-blue: 0 4px 24px rgba(91, 110, 225, 0.15), 0 1px 6px rgba(91, 110, 225, 0.1);
  
  /* 圆角 */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  color-scheme: light;
  color: var(--text-primary);
  background-color: var(--bg-primary);

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--light-purple);
}

a {
  font-weight: 500;
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--primary-purple);
}

body {
  margin: 0;
  display: flex;
  place-items: center;
  min-width: 320px;
  min-height: 100vh;
  background: linear-gradient(135deg, #a9c5f7 0%, #e9ddfe 100%);
}

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.25s;
}
button:hover {
  border-color: #646cff;
}
button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

.card {
  padding: 2em;
}

#app {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
  height: 100%;
  min-height: 0;
}

.flow-container {
  position: absolute;
  top: 10%;
  left: 1%;
  width: 98%;
  height: 90%;
  max-height: 90vh;
  max-width: 98vw;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 0;
  display: flex;
  flex-direction: column;
}

.flow-container2 {
  position: absolute;
  top: 2%;
  left: 1%;
  width: 98%;
  height: 96%;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 0;
  display: flex;
  flex-direction: column;
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #ffffff;
  }
  a:hover {
    color: #747bff;
  }
  button {
    background-color: #f9f9f9;
  }
}

/* 全局滚动条美化 */
::-webkit-scrollbar {
  width: 8px;
  background: var(--light-purple);
  border-radius: var(--radius-md);
}
::-webkit-scrollbar-thumb {
  background: var(--light-blue);
  border-radius: var(--radius-md);
  transition: background 0.3s;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-blue);
}
/* Firefox 滚动条 */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--light-blue) var(--light-purple);
}

/* 通用按钮样式 btn1 和 btn2 */
.btn1, .btn2 {
  border-radius: 50%;
  color: #fff;
  font-weight: 600;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 2px 8px 0 rgba(124, 58, 237, 0.08);
  padding: 0.7em 1.5em;
  font-size: 1em;
}

.btn1 {
  background: #7c3aed;
}
.btn1:hover {
  background: #5b21b6;
  transform: scale(1.06);
  box-shadow: 0 4px 16px 0 rgba(124, 58, 237, 0.16);
}
.btn1:active {
  background: #4c1d95;
  transform: scale(0.97);
}

.btn2 {
  background: #a259ec;
}
.btn2:hover {
  background: #7c3aed;
  transform: scale(1.06);
  box-shadow: 0 4px 16px 0 rgba(162, 89, 236, 0.16);
}
.btn2:active {
  background: #6d28d9;
  transform: scale(0.97);
}
